package com.ssm.xm.service.impl;

import com.ssm.xm.mapper.UserMapper;
import com.ssm.xm.pojo.Student;
import com.ssm.xm.pojo.User;
import com.ssm.xm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAllUser() {
        return userMapper.getAllUser();
    }

    @Override
    public List<Student> getPageStudent(String likeName) {
        return userMapper.getPageStudent(likeName);
    }
}
